From: Rui Matos Date: Thu, 17 Jan 2013 18:42:41 +0000 (+0100) Subject: switcherPopup: Hide the top level actor on _init X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5060 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f2cbc3192c9f3524219aef1ba5e9ea7d1f0a5045;p=gnome-shell.git switcherPopup: Hide the top level actor on _init destroy() checks if we are visible to decide whether to destroy the actor immediately or after a fade out animation. Since actors are visible by default it would always end up destroying only after the animation time. https://bugzilla.gnome.org/show_bug.cgi?id=691963 --- diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index c3a4ce0d9..bfe172b0c 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -46,7 +46,8 @@ const SwitcherPopup = new Lang.Class({ this._selectedIndex = 0; this.actor = new Shell.GenericContainer({ style_class: 'switcher-popup', - reactive: true }); + reactive: true, + visible: false }); this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth)); this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight)); this.actor.connect('allocate', Lang.bind(this, this._allocate));